"""
logger.add("file_1.log", rotation="500 MB")    # Automatically rotate too big file
 logger.add("file_2.log", rotation="12:00")     # New file is created each day at noon
 logger.add("file_3.log", rotation="1 week")    # Once the file is too old, it's rotated
 
 logger.add("file_X.log", retention="10 days")  # Cleanup after some time
 
 logger.add("file_Y.log", compression="zip")    # Save some loved space
"""

from loguru import logger

logger.add(sink="py_loguru.log", encoding='utf-8',
           rotation='1 KB', compression='zip')

logger.info("这是info")
logger.warning("这是warning")
logger.error("这是错误")

